<?php
namespace App\Http\Controllers\Mp;
/**
 * Class BookOrderCountController
 * @package App\Http\Controllers\Mp
 * @author zjw
 */
class BookOrderCountController extends BaseController{
    public function index(){
        return [
            'breakfast'=> \Auth::user()->initOrders()->isBreakfast()->count(),
            'lunch' => \Auth::user()->initOrders()->isLunch()->count(),
            'dinner'=> \Auth::user()->initOrders()->isDinner()->count(),
        ];
    }
}
